// cookie直接使用方便还是使用插件方便
// js-cookie 的语法和localStorage非常相近
// 1、获取  localStorage.getItem()   =>Cookies.get
// 2、设置  localStorage.setItem()   =>Cookies.set
// 3、移除  localStorage.removeItem()   =>Cookies.remove
import Cookies from 'js-cookie'

const TokenKey = 'hrsaas_22_usertoken_nb'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
